headers = [ ' Symbol ' , ' Price ' , ' Date ' , ' Time ' , ' Change ' , ' Volume ' ]
rows = [( ' AA ' , 39.48, ' 6/11/2007 ' , ' 9:36am ' , -0.18, 181800),
( ' AIG ' , 71.38, ' 6/11/2007 ' , ' 9:36am ' , -0.15, 195500),
( ' AXP ' , 62.58, ' 6/11/2007 ' , ' 9:36am ' , -0.46, 935000),
]


import csv

with open("6-1.csv",'w') as f:
    f_csv = csv.writer(f)
    f_csv.writerow(headers)
    for item in rows:
        f_csv.writerow(item)
